<?php
//商家后台商品管理
if(!defined('IN_T')){
   die('hacking attempt');
}

class product extends module_product{
	
	protected function check_product_exists($p_id){
		global $Base,$Db,$company;
		$sql = "select * from ".$Base->table('company_product')." where id=$p_id ";
		$sql .= $company['p_id'] ? "and c_id=".$company['p_id']."" : "and c_id=".$company['id']."";
		return $Db->query($sql,'Row');
	}
}
new product();
?>